#region Copyright RenGuiYou. All rights reserved.
//=====================================================
// NeatlyFrameWork
// Author:      RenGuiyou
// Feedback: 	mailto:750539605@qq.com
//=====================================================
#endregion
using System;
using UnityEngine;
using UnityEngine.Serialization;

namespace Neatly.UI
{
    [Serializable]
    public struct ColorCombine
    {
        [FormerlySerializedAs("normalColor")] [SerializeField]
        private Color m_NormalColor;
        [FormerlySerializedAs("pressedColor")] [SerializeField]
        private Color m_PressedColor;
        [FormerlySerializedAs("offColor")] [SerializeField]
        private Color m_OffColor;
        public Color normalColor
        {
            get => m_NormalColor;
            set => m_NormalColor = value;
        }
        public Color pressedColor
        {
            get => m_PressedColor;
            set => m_PressedColor = value;
        }
        public Color offColor
        {
            get => m_OffColor;
            set => m_OffColor = value;
        }
        public static ColorCombine DefaultColorCombineBlock
        {
            get
            {
                var c = new ColorCombine
                {
                    m_NormalColor = new Color32(255, 255, 255, 255),
                    m_PressedColor = new Color32(200, 200, 200, 255),
                    m_OffColor = new Color32(155, 155, 155, 255),
                };
                return c;
            }
        }
    }
}